package chixing.day04;

public class Phone {
    private int phoneId;
    private String phoneName;
    //构造函数constructor（作用：初始化对象）

    public Phone(){
        System.out.println("phoneId="+phoneId);
        System.out.println("phoneName="+phoneName);
        System.out.println("Phone的无参构造");
    }

    public int getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(int phoneId) {
        this.phoneId = phoneId;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }
}
